package com.bright.service.Impl;

import com.bright.dao.UserDao;
import com.bright.entity.User;
import com.bright.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

//@Component
@Service
public class UserServiceImpl implements UserService {

    //一个UserDao，多个impl
    @Qualifier("userToOrcalDaoImpl")
    @Autowired
    private UserDao UserDao;
    @Qualifier("userToMysqlDaoImpl")
    @Autowired
    private UserDao userToOrcalDaoImpl;



    public void getUser() {
        userToOrcalDaoImpl.ok();
    }
    @Override
    public void getDingHuaDong() {
        userToOrcalDaoImpl.sb();
        UserDao.sb();
    }
}
